]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lightbox: Remove unnecessary params
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jul 2019 21:17:28 +0000 (23:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Jul 2019 15:51:14 +0000 (17:51 +0200)
Actors have a default origin of (0, 0), so there's no need of
setting those explicitly.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/651

js/ui/lightbox.js

index b033e40d3e89470b8f23ae62df160c86ed6acdcc..0fb75158921c0f2af9c73e1ad15fb9a1ba496926 100644 (file)
@@ -100,13 +100,9 @@ var Lightbox = class Lightbox {
         this._fadeFactor = params.fadeFactor;
         this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect;
         if (this._radialEffect)
-            this.actor = new RadialShaderQuad({ x: 0,
-                                                y: 0,
-                                                reactive: params.inhibitEvents });
+            this.actor = new RadialShaderQuad({ reactive: params.inhibitEvents });
         else
-            this.actor = new St.Bin({ x: 0,
-                                      y: 0,
-                                      opacity: 0,
+            this.actor = new St.Bin({ opacity: 0,
                                       style_class: 'lightbox',
                                       reactive: params.inhibitEvents });